<?php

	function paramSwap($param) {

		$arrTemp = explode(':', $param['host']);
		$new_param = array
		(
		  'hostname' => $arrTemp[0],
		  'port'     => $arrTemp[1],
		  'username' => $param['user'],
		  'password' => $param['passwd'],
		  'database' => $param['db']
		);
		return $new_param;
	}
	

?>